<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016-12-27
 * Time: 23:17
 */

namespace app\library;

class CommonConfig
{
    // sms相关
    const SMS_URL = 'https://sms.aliyuncs.com/?';
    const SMS_DATE_FORMATE = 'Y-m-d\TH:i:s\Z'; // ISO8601规范
    const SMS_KEY_ID = 'LTAIOFNv24vMvUNZ';      // 这里填写您的Access Key ID
    const SMS_KEY_SECRET = 'I98e0hT7o8vRvL4cDkxdeI5tFBnIdp';  // 这里填写您的Access Key Secret
    const SMS_SIGN_NAME = '漫社互动';
    const SMS_FORMAT = 'json';
    const SMS_SIGNATURE_METHOD = 'HMAC-SHA1';
    const SMS_VERSION = '2016-09-27';
    const SMS_SIGNATURE_VERSION = '1.0';
    const SMS_ACTION = 'SingleSendSms';
    const SMS_TEMPLATE_CODE = 'SMS_35965121';

    //sms相关
    const SMS_ACCESSKEYID = 'LTAIEre4fsisMMTq';
    const SMS_ACCESSKEYSECRET = 'dCe2zdxOuUlZlsZJlhVdqpWiA70mdF';

    //sts相关
    const STS_ACCESSKEYID = 'LTAInI6SdZCs0XgV';
    const STS_ACCESSKEYSECRET = '0diaQdQz7IyJLVJKzwvfa7mm4x9zhm';
    const STS_ROLEARN = 'acs:ram::1834979450779003:role/mansheapp-role';
    const STS_ROLE_SESSION_NAME = 'mansheapp-role';
    const STS_REGION = 'cn-hangzhou';
    const STS_TIMEOUT = 60 * 15; //900~3600之间

    //oss相关
    const OSS_ENDPOINTS = 'oss-cn-beijing.aliyuncs.com';
    const OSS_BUCKET = 'manshe-app';
    const API_SECRET_KEY = 'guaishoudemanshe';
    const TOKEN_EXPIRE_TIME = 7 * 24 * 60 * 60;
    //默认图像
    const DEFAULT_AVATAR = 'http://manshe-app.oss-cn-beijing.aliyuncs.com/people/default_avatar.jpg';
    const LOGO = 'http://manshe-app.oss-cn-beijing.aliyuncs.com/system/logo.png';
    //COOKIE相关
    const COOKIE_NAME = 'MSPASS';
    const COOKIE_TYPE = 'HOME';

    const COOKIE_EXPIRE_TIME = 60 * 60;

    // 推送相关
    const NOTIFICATION_APPKEY = '58ce629a4ad1565a59000035';
    const NOTIFICATION_APPMASTERSECRET = 'sfyqi80vbtumfwg1sftnkpmfkogwjymw';

}
